package cn.iocoder.yudao.module.testequipment.controller.admin.testequipment.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 参试设备管理表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class TestEquipmentRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "设备名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("设备名称")
    private String eqName;

    @Schema(description = "所属部门", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "所属部门", converter = DictConvert.class)
    @DictFormat("dept") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Long deptId;

    @Schema(description = "设备型号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("设备型号")
    private String model;

    @Schema(description = "存放库房id", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("存放库房id")
    private Long warehouseId;

    @Schema(description = "试验结果")
    @ExcelProperty("试验结果")
    private String testResult;


    @Schema(description = "存放位置", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("存放位置")
    private String storageLocation;

    @Schema(description = "使用状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "使用状态", converter = DictConvert.class)
    @DictFormat("use_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer useStatus;

    @Schema(description = "设备状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "设备状态", converter = DictConvert.class)
    @DictFormat("test_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer testStatus;

    @Schema(description = "创建人")
    @ExcelProperty("创建人")
    private String creator;

    @Schema(description = "创建时间（入场时间）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间（入场时间）")
    private LocalDateTime createTime;

}
